import React, { Component } from 'react'
import { Layout } from 'antd';
import './index.css';
import Mainheader from '../Header';
import Mainsider from '../Sider';
import { Route } from 'react-router-dom';
const { Header, Sider, Content } = Layout;

export default class Maincontent extends Component {
    render() {
        return (
            <div style={{ height: "100vh" }}>
                <Layout>
                    <Header style={{ backgroundColor: "#FCF8F8" }}><Mainheader /></Header>
                    <Layout className="layout-style">
                        <Sider className="sider-style"><Mainsider /></Sider>
                        <Content style={{ padding: "30px", backgroundColor: "#E8EBF0" }}>
                            {/* 在这里注册路由，格式如下 ,前面必须是/main*/}
                            {/* <Route path="/main/xxx" component={Login}></Route> */}
                        </Content>
                    </Layout>
                </Layout>
            </div>
        )
    }
}
